﻿using System;

using octalforty.Componento.Core.ObjectModel;

namespace octalforty.Componento.Core.ApplicationServices
{
    public class PackageRegistrarService
    {
        public virtual bool IsRegistered(string libPath, string name, Version version)
        {
            return false;
        }

        public void Register(string libPath, PackageManifest package)
        {}

        /// <summary>
        /// Registers <paramref name="dependency"/> as a package that <paramref name="package"/> depends upon.
        /// </summary>
        /// <param name="libPath"></param>
        /// <param name="package"></param>
        /// <param name="dependency"></param>
        public void RegisterDependency(string libPath, PackageManifest package, PackageManifest dependency)
        {}

        public void Unregister(string libPath, PackageManifest package)
        {}
    }
}
